<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>贷后历史检查表</title>
<script src="../plugins/jquery.min.js"></script>
<script src="../bootstrap.min.js"></script>
<script type="text/javascript" src="../js/pact.js"></script>
<link rel="stylesheet" href="../css/bootstrap.min.css">
<style>
.col-xs-1 {
    width: 13%;
    float:right;
}
</style>
</head>
<body>
	<div class="panel panel-success">
		<div class="panel-heading" id="ht0" style="height:50px">
			<div class="row">
				<div class="col-sm-8">
					<h4 class="text-left m-t-10 text-white">
						<strong id="title"></strong>
					</h4>
				</div>
				<div class="col-xs-1">		
					<button class="btn btn-info btn-sm btn-block" type="button" onclick="back()">
						返回
					</button>
				</div>
				<div class="col-xs-1">		
					<button class="btn btn-info btn-sm btn-block" type="button" onclick="callprint()">打印</button>
				</div>
			</div>
		</div>
		<div class="panel-body" id="content">
	    	<iframe  id="myTabsFrame"  name="myTabsFrame" width="100%"  src="" style="width:100%;border:0">
	    		正在加载
	    	</iframe>
	    </div>
	</div>
</body>
<script type="text/javascript">
var value=getUrlParam("value")||"";
var title=getUrlParam("title")||"";
var type=getUrlParam("type")||"";
var custType=getUrlParam("custType")||"";
var stat=getUrlParam("stat")||"";
var checkTime = getUrlParam("checkTime")||"";
var checkReason = getUrlParam("checkReason")||"";
var checkWay = getUrlParam("checkWay")||"";
var checkId = getUrlParam("checkId")||"";
var fileName = getUrlParam("fileName")||"";
var filePath = getUrlParam("filePath")||"";
if(type=='gsTab'){
	//公司表
	$("#title").html(title);
	$("#myTabsFrame").attr("src","gsTable/detail?type=01&checkId="+checkId+"&stat=1");
}else{
	//个人表
// 	if(type == "BUSINESS,1"){
// 		$("#title").html('个人经营检查表');
// 		}else if(type == "FARMER,1"){
// 		$("#title").html('农户检查表');
// 		}else if(type == "TOWNSFOLK,1"){
// 		$("#title").html('公职检查表');
// 		}else if(type == "MORTGAGE,1"){
// 		$("#title").html('按揭检查表');
// 		}else{
// 			$("#title").html('保证人检查表');
// 		}
	$("#myTabsFrame").attr("src","grHisTable/detail?type=MORTGAGE,1&checkId="+checkId+"&fileName="+fileName+"&filePath="+filePath+"&stat=2");
}
function getH(){ 
	var wh= $(window).height();
	var ht0 = $("#ht0").height();
	var ht = wh - ht0;
	$("#myTabsFrame").height(ht);	
}  
$(getH);
window.addEventListener("orientationchange",getH, false);
//调用子窗口打印
function callprint(){
	//myTabsFrame为iframe标签名
	myTabsFrame.window.myprint();
	
}
//调查报告/审查审批表返回
function back(){
	location.href='/UI/historyTable?stat='+stat;
}

</script>
</html>